<?php 
class Admin_IndexController extends Zend_Controller_Action{
	
	public function init(){
        $layoutPath = APP_PATH . '/templates/admin/';
        $option = array ('layout'     => 'index',
                         'layoutPath' => $layoutPath,
                         'contentKey' => 'content' );
        Zend_Layout::startMvc( $option );
    }
	
	public function indexAction(){
		$adm = new Admin_Model_Admins();
		$arradm = $adm->getAllAdmin();             
		$this->view->data = $arradm;
		/*$admin = new Admin_Model_Index();
		$lsadm = $admin->getAdmin();
		$this->view->lsadm = $lsadm;*/
	}
	
	/*
	* @auth: vuhai4187
	* @date: 05.11.2011
	* @return
	*/
	
	public function menuAction(){
		$topmenu = new Admin_Model_Index();
		$rstopmenu = $topmenu->getCategories();
		$this->view->rstopmenu = $rstopmenu;
		//menu cap 2
		$submenu = $topmenu->getComponents();
		$this->view->rstopmenu = $rstopmenu;
		
		$this->view->submenu = $submenu;
		//print_r($submenu);die;
	}
	
	/*
	* @auth: vuhai4187
	* @date: 05.11.2011
	* @return
	*/	
	public function leftmenuAction(){
	}
	
	/*
	* @vuhai4187
	* @date 30.10.2011
	* @return footer in e4c
	*/
	public function footerAction(){
		$topmenu = new Admin_Model_Index();
		$rstopmenu = $topmenu->getCategories();
		$this->view->rstopmenu = $rstopmenu;
	}
}